package com.example.service;

import com.example.domain.Blog;
import com.example.domain.property.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TypeService {
    //新增
    public boolean insert(Type type);
    //查询一个
    public Type selectOne(Long id);
    //查询所有分类
    public List<Type> findAll();
    //分页查询多个
    public Page<Type> selectTypePage(int currentPage, int PageSize);

    //更新
    public boolean updateById(Type type);
    //id删除
    public boolean deleteById(Long id);
}
